const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: "127.0.0.1",
    port: 8080,
    proxy: {
      "/api": {
        target: "http://127.0.0.1:4000",
        pathRewrite: { "^/api": "" },
      },
      "/haha": {
        target: "http://api.github.com",
        pathRewrite: { "^/haha": "" },
      },
    },
  },
});
